/*    */ package blockbuster.components.lifetime;
/*    */ 
/*    */ import blockbuster.emitter.BedrockEmitter;
/*    */ 
/*    */ public class BedrockComponentLifetimeOnce
/*    */   extends BedrockComponentLifetime {
/*    */   public void update(BedrockEmitter emitter) {
/*  8 */     double time = this.activeTime.get();
/*    */     
/* 10 */     emitter.lifetime = (int)(time * 20.0D);
/*    */     
/* 12 */     if (emitter.getAge() >= time) {
/* 13 */       emitter.stop();
/* 14 */       emitter.stopWithOnce();
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\blockbuster\components\lifetime\BedrockComponentLifetimeOnce.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */